{% extends "base_page.html" %}

{% block page_title %}
    Verify Excel File
{% endblock %}

{% block content %}
<div class="container">
{% if noConn %}
    <div class="alert alert-block alert-error fade in">
        <button type="button" class="close" data-dismiss="alert">×</button>
        <h4 class="alert-heading">Can't connect to Printer!</h4>
        <p>Please check the if give the right ip address and make sure a valid connection with the Printer is established.</p>
        <p>
            <a class="btn btn-danger" href="/makeConfig-1">Go Back</a>
        </p>
    </div>
{% else %}
<h2>Ooops, some data as follow doesn't fit the automation test standard</h2>
<hr />
    <p>
        <a class="btn btn-danger" href="/makeConfig-2">I already aware of that there are so many errors down there, but i will continue anyway on my own risk ...</a>
    </p>


{% for tb in content %}
<table class="table table-bordered table-striped">
<caption><h4>{{ tb[0] }}</h4></caption>
    <thead>
    <tr>
        <th>Location</th>
        <th>Problem</th>
    </tr>
    </thead>
    {% for i in tb[1] %}
    <tr>
        <td>{{ i[0] }}</td>
        <td>{{ i[1] }}</td>
    </tr>
    {% endfor %}
</table>
{% endfor %}
{% endif %}
</div>
{% endblock %}